home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / GraphicsCards / StormMesa / Makefile < prev    next >
Makefile  |  1998-12-15  |  19KB  |  520 lines

  1. # Top-level makefile for Mesa
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  3.0
  5. # Copyright (C) 1995-1998  Brian Paul
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Id: Makefile,v 3.23 1998/08/05 01:27:47 brianp Exp $
  23.  
  24. # $Log: Makefile,v $
  25. # Revision 3.23  1998/08/05 01:27:47  brianp
  26. # updated OS/2 config (Alexander Mai)
  27. #
  28. # Revision 3.22  1998/08/02 15:51:00  brianp
  29. # added CONFORM file
  30. #
  31. # Revision 3.21  1998/08/01 03:58:11  brianp
  32. # added hpux10-gcc-sl and irix6-gcc-n32-sl configs (Albert De Knuydt)
  33. #
  34. # Revision 3.20  1998/07/30 23:51:47  brianp
  35. # updated BeOS configs (Ed Silva)
  36. #
  37. # Revision 3.19  1998/07/26 17:28:55  brianp
  38. # small change to tar file list
  39. #
  40. # Revision 3.18  1998/07/26 01:18:07  brianp
  41. # added irix5-gcc config
  42. #
  43. # Revision 3.17  1998/07/26 01:15:04  brianp
  44. # moved glut.h to demos tar file instead of lib tar file
  45. #
  46. # Revision 3.16  1998/07/08 02:03:16  brianp
  47. # added linux-386-pthread-shared config
  48. #
  49. # Revision 3.15  1998/07/08 01:38:27  brianp
  50. # added linux-ggi config
  51. #
  52. # Revision 3.14  1998/06/22 01:55:44  brianp
  53. # removed obsolete mswindows stuff
  54. #
  55. # Revision 3.13  1998/06/22 01:53:58  brianp
  56. # added linux-386-glide-mits config
  57. #
  58. # Revision 3.12  1998/06/19 03:18:39  brianp
  59. # minor clean-up
  60. #
  61. # Revision 3.11  1998/06/13 16:03:00  brianp
  62. # clean-up of tar file list
  63. #
  64. # Revision 3.10  1998/06/01 00:56:00  brianp
  65. # updated NeXT and OpenStep configs
  66. #
  67. # Revision 3.9  1998/06/01 00:43:44  brianp
  68. # added linux-sparc config from Timothy Small
  69. #
  70. # Revision 3.8  1998/05/31 23:34:38  brianp
  71. # updated OS/2 support from Alexander Mai
  72. #
  73. # Revision 3.7  1998/04/22 00:49:42  brianp
  74. # small changes to tar file lists
  75. #
  76. # Revision 3.6  1998/04/20 23:53:54  brianp
  77. # added DavidB's 3Dfx v0.25 driver changes
  78. #
  79. # Revision 3.5  1998/04/18 05:01:33  brianp
  80. # IRIX: make lib32 and lib64 directories
  81. # added linux-sparc5-elf
  82. #
  83. # Revision 3.4  1998/03/24 00:52:28  brianp
  84. # added openstep-dynlib config
  85. #
  86. # Revision 3.3  1998/03/11 03:13:00  brianp
  87. # added linux-ppc-so config
  88. #
  89. # Revision 3.2  1998/03/10 02:10:46  brianp
  90. # minor changes
  91. #
  92. # Revision 3.1  1998/02/21 01:41:10  brianp
  93. # added sunos4-gcc-x11r6-sl
  94. # more reorganization
  95. #
  96. # Revision 3.0  1998/02/14 17:43:55  brianp
  97. # initial rev
  98. #
  99.  
  100.  
  101. SHELL = /bin/sh
  102.  
  103.  
  104. # To add a new configuration for your system add it to the list below
  105. # then update the Make-config file.
  106.  
  107.  
  108.  
  109. default:
  110.     @echo "Type one of the following:"
  111.     @echo "  make aix                  for IBM RS/6000 with AIX"
  112.     @echo "  make aix-sl               for IBM RS/6000, make shared libs"
  113.     @echo "  make amiwin               for Amiga with SAS/C and AmiWin"
  114.     @echo "  make amix                 for Amiga 3000 UX  SVR4 v2.1 systems"
  115.     @echo "  make beos-ppc             for BeOS with R3 or later"
  116.     @echo "  make beos-x86             for BeOS with R3 or later"
  117.     @echo "  make beos-glide           for BeOS with R3 or later, 3Dfx Glide driver"
  118.     @echo "  make bsdos                for BSD/OS from BSDI using GCC"
  119.     @echo "  make cygnus               for Win95/NT using Cygnus-Win32"
  120.     @echo "  make cygnus-linux         for Win95/NT using Cygnus-Win32 under Linux"
  121.     @echo "  make dgux                 for Data General"
  122.     @echo "  make freebsd              for FreeBSD systems with GCC"
  123.     @echo "  make freebsd-386          for FreeBSD systems with GCC, w/ Intel assembly"
  124.     @echo "  make gcc                  for a generic system with GCC"
  125.     @echo "  make hpux9                for HP systems with HPUX 9.x"
  126.     @echo "  make hpux9-sl             for HP systems with HPUX 9.x, make shared libs"
  127.     @echo "  make hpux9-gcc            for HP systems with HPUX 9.x using GCC"
  128.     @echo "  make hpux9-gcc-sl         for HP systems with HPUX 9.x, GCC, make shared libs"
  129.     @echo "  make hpux10               for HP systems with HPUX 10.x"
  130.     @echo "  make hpux10-gcc           for HP systems with HPUX 10.x w/ GCC"
  131.     @echo "  make hpux10-gcc-sl        for HP systems with HPUX 10.x w/ GCC, shared libs"
  132.     @echo "  make irix4                for SGI systems with IRIX 4.x"
  133.     @echo "  make irix5                for SGI systems with IRIX 5.x"
  134.     @echo "  make irix5-gcc            for SGI systems with IRIX 5.x using GCC"
  135.     @echo "  make irix5-dso            for SGI systems with IRIX 5.x, make DSOs"
  136.     @echo "  make irix6-32             for SGI systems with IRIX 6.x, make 32-bit libs"
  137.     @echo "  make irix6-32-dso         for SGI systems with IRIX 6.x, make 32-bit DSOs"
  138.     @echo "  make irix6-n32            for SGI systems with IRIX 6.x, make n32-bit libs"
  139.     @echo "  make irix6-n32-dso        for SGI systems with IRIX 6.x, make n32-bit DSOs"
  140.     @echo "  make irix6-gcc-n32-sl     for SGI systems with IRIX 6.x, GCC, make n32 DSOs"
  141.     @echo "  make irix6-64             for SGI systems with IRIX 6.x, make 64-bit libs"
  142.     @echo "  make irix6-64-dso         for SGI systems with IRIX 6.x, make 64-bit DSOs"
  143.  
  144.     @echo "  make linux                for Linux systems, make static .a libs"
  145.     @echo "  make linux-elf            for Linux systems, make ELF shared libs"
  146.     @echo "  make linux-386            for Linux w/ Intel assembly"
  147.     @echo "  make linux-386-elf        for Linux w/ Intel assembly, make ELF shared libs"
  148.     @echo "  make linux-386-pthread    for Linux w/ Intel assembly and linuxthreads"
  149.     @echo "  make linux-386-pthread-shared  for Linux w/ Intel assembly and linuxthreads"
  150.     @echo "  make linux-ggi            for Linux systems with libggi"
  151.     @echo "  make linux-alpha          for Linux on Alpha systems"
  152.     @echo "  make linux-alpha-elf      for Linux on Alpha systems, make ELF shared libs"
  153.     @echo "  make linux-ppc            for Linux on PowerPC systems"
  154.     @echo "  make linux-ppc-so         for Linux on PowerPC systems, make shared libs"
  155.     @echo "  make linux-glide          for Linux w/ 3Dfx Glide driver"
  156.     @echo "  make linux-386-glide      for Linux w/ 3Dfx Glide driver, Intel assembly"
  157.     @echo "  make linux-386-glide-mits for Linux w/ 3Dfx Glide driver, Intel assembly, MITS"
  158.     @echo "  make linux-386-opt-glide  for Linux with 3Dfx Voodoo1 for GLQuake"
  159.     @echo "  make linux-386-opt-V2-glide  for Linux with 3Dfx Voodoo2 for GLQuake"
  160.     @echo "  make linux-sparc          for Linux on Sparc systems"
  161.     @echo "  make linux-sparc5-elf     for Sparc5 systems, make ELF shared libs"
  162.     @echo "  make lynxos               for LynxOS systems with GCC"
  163.     @echo "  make macintosh            for Macintosh"
  164.     @echo "  make machten-2.2          for Macs w/ MachTen 2.2 (68k w/ FPU)"
  165.     @echo "  make machten-4.0          for Macs w/ MachTen 4.0.1 or newer with GNU make"
  166.     @echo "  make mklinux              for Linux on Power Macintosh"
  167.     @echo "  make netbsd               for NetBSD 1.0 systems with GCC"
  168.     @echo "  make next                 for NeXT systems with NEXTSTEP 3.3"
  169.     @echo "  make next-x86-x11         for NeXT on Intel x86 with X11"
  170.     @echo "  make next-x11             for NeXT with X11"
  171.     @echo "  make openbsd              for OpenBSD systems"
  172.     @echo "  make openstep             for NeXT systems with OPENSTEP 4.0"
  173.     @echo "  make openstep-dynlib      for NeXT systems with OPENSTEP 4.0, shared libs"
  174.     @echo "  make os2-x11              for OS/2 with XFree86"
  175.     @echo "  make osf1                 for DEC Alpha systems with OSF/1"
  176.     @echo "  make osf1-sl              for DEC Alpha systems with OSF/1, make shared libs"
  177.     @echo "  make qnx                  for QNX V4 systems with Watcom compiler"
  178.     @echo "  make sco                  for SCO Unix systems with ODT"
  179.     @echo "  make solaris-x86          for PCs with Solaris"
  180.     @echo "  make solaris-x86-gcc      for PCs with Solaris using GCC"
  181. #    @echo "  make solaris-gcc          for Solaris 2 systems with GCC"
  182.     @echo "  make sunos4               for Suns with SunOS 4.x"
  183.     @echo "  make sunos4-sl            for Suns with SunOS 4.x, make shared libs"
  184.     @echo "  make sunos4-gcc           for Suns with SunOS 4.x and GCC"
  185.     @echo "  make sunos4-gcc-sl        for Suns with SunOS 4.x, GCC, make shared libs"
  186.     @echo "  make sunos5               for Suns with SunOS 5.x"
  187.     @echo "  make sunos5-sl            for Suns with SunOS 5.x, make shared libs"
  188.     @echo "  make sunos5-ultra         for Sun UltraSPARCs with SunOS 5.x"
  189.     @echo "  make sunos5-ultra-sl      for Sun UltraSPARCs with SunOS 5.x, make shared libs"
  190.     @echo "  make sunos5-thread        for Suns with SunOS 5.x, using Solaris threads"
  191.     @echo "  make sunos5-pthread       for Suns with SunOS 5.[56] using POSIX threads"
  192.     @echo "  make sunos5-gcc           for Suns with SunOS 5.x and GCC"
  193.     @echo "  make sunos5-gcc-sl        for Suns with SunOS 5.x, GCC, make shared libs"
  194.     @echo "  make sunos5-gcc-thread    for Suns with SunOS 5.x and GCC, using Solaris threads"
  195.     @echo "  make sunos5-gcc-pthread   for Suns with SunOS 5.[56] and GCC, using POSIX threads"
  196.     @echo "  make sunos5-x11r6-gcc-sl  for Suns with X11R6, GCC, make shared libs"
  197.     @echo "  make sunSolaris-CC        for Solaris using C++ compiler"
  198.     @echo "  make ultrix-gcc           for DEC systems with Ultrix and GCC"
  199.     @echo "  make unicos               for Cray C90 (and other?) systems"
  200.     @echo "  make unixware             for PCs running UnixWare"
  201.     @echo "  make unixware-shared      for PCs running UnixWare, shared libs"
  202.     @echo "  make vistra               for Stardent Vistra systems"
  203.     @echo "  make clean                remove .o files"
  204.     @echo "  make realclean            remove .o, library and executable files"
  205.  
  206.  
  207.  
  208. aix aix-sl amix bsdos dgux freebsd freebsd-386 gcc \
  209. hpux9 hpux9-gcc hpux9-sl hpux9-gcc-sl hpux10 hpux10-gcc hpux10-gcc-sl \
  210. irix-debug irix4 irix5 irix5-gcc irix5-dso irix6-32 \
  211. irix6-32-dso \
  212. linux linux-debug linux-elf \
  213. linux-glide linux-386-glide linux-386-opt-glide \
  214. linux-386-opt-V2-glide linux-386-glide-mits \
  215. linux-386 linux-386-elf \
  216. linux-386-pthread linux-386-pthread-shared \
  217. linux-alpha linux-alpha-elf \
  218. linux-ppc linux-ppc-so \
  219. linux-sparc5-elf \
  220. lynxos machten-2.2 machten-4.0 \
  221. mklinux netbsd next-x86-x11 next-x11 osf1 osf1-sl openbsd qnx sco \
  222. solaris-x86 solaris-x86-gcc sunSolaris-CC \
  223. sunos4 sunos4-sl sunos4-gcc sunos4-gcc-sl sunos4-gcc-x11r6-sl \
  224. sunos5 sunos5-sl sunos5-ultra sunos5-ultra-sl sunos5-gcc sunos5-gcc-sl \
  225. sunos5-thread sunos5-pthread sunos5-gcc-thread sunos5-gcc-pthread \
  226. sunos5-x11r6-gcc-sl ultrix-gcc unicos unixware vistra:
  227.     -mkdir lib
  228.     touch src/depend
  229.     touch src-glu/depend
  230.     if [ -d src-glut ] ; then touch src-glut/depend ; fi
  231.     cd src ; $(MAKE) $@
  232.     cd src-glu ; $(MAKE) $@
  233.     if [ -d src-glut ] ; then cd src-glut ; $(MAKE) $@ ; fi
  234.     if [ -d demos ]    ; then cd demos    ; $(MAKE) $@ ; fi
  235.     if [ -d xdemos ]   ; then cd xdemos   ; $(MAKE) $@ ; fi
  236.     if [ -d samples ]  ; then cd samples  ; $(MAKE) $@ ; fi
  237.     if [ -d book ]     ; then cd book     ; $(MAKE) $@ ; fi
  238.  
  239.  
  240. irix6-n32 irix6-n32-dso irix6-gcc-n32-sl:
  241.     -mkdir lib32
  242.     touch src/depend
  243.     touch src-glu/depend
  244.     if [ -d src-glut ] ; then touch src-glut/depend ; fi
  245.     cd src ; $(MAKE) $@
  246.     cd src-glu ; $(MAKE) $@
  247.     if [ -d src-glut ] ; then cd src-glut ; $(MAKE) $@ ; fi
  248.     if [ -d demos ]    ; then cd demos    ; $(MAKE) $@ ; fi
  249.     if [ -d xdemos ]   ; then cd xdemos   ; $(MAKE) $@ ; fi
  250.     if [ -d samples ]  ; then cd samples  ; $(MAKE) $@ ; fi
  251.     if [ -d book ]     ; then cd book     ; $(MAKE) $@ ; fi
  252.  
  253.  
  254. irix6-64 irix6-64-dso:
  255.     -mkdir lib64
  256.     touch src/depend
  257.     touch src-glu/depend
  258.     if [ -d src-glut ] ; then touch src-glut/depend ; fi
  259.     cd src ; $(MAKE) $@
  260.     cd src-glu ; $(MAKE) $@
  261.     if [ -d src-glut ] ; then cd src-glut ; $(MAKE) $@ ; fi
  262.     if [ -d demos ]    ; then cd demos    ; $(MAKE) $@ ; fi
  263.     if [ -d xdemos ]   ; then cd xdemos   ; $(MAKE) $@ ; fi
  264.     if [ -d samples ]  ; then cd samples  ; $(MAKE) $@ ; fi
  265.     if [ -d book ]     ; then cd book     ; $(MAKE) $@ ; fi
  266.  
  267.  
  268. amiwin:
  269.     mklib.amiwin
  270.  
  271. beos-ppc beos-x86 beos-glide:
  272.     -mkdir lib
  273.     touch src/depend
  274.     touch src-glu/depend
  275.     cd src ; $(MAKE) -f Makefile.BeOS $@
  276.     cd src-glu ; $(MAKE) -f Makefile.BeOS $@
  277.     if [ -d BeOS ]    ; then cd BeOS    ; $(MAKE) -f Makefile.BeOS $@ ; fi
  278.  
  279. cygnus cygnus-linux:
  280.     -mkdir lib
  281.     touch src/depend
  282.     touch src-glu/depend
  283.     cd src ; $(MAKE) $@
  284.     cd src-glu ; $(MAKE) $@
  285.     cd src-glut ; $(MAKE) $@
  286.     cd demos ; $(MAKE) $@
  287.     if [ -d xdemos ]  ; then cd xdemos  ; $(MAKE) $@ ; fi
  288.  
  289. macintosh:
  290.     @echo "See the README file for Macintosh intallation information"
  291.  
  292. next:
  293.     -mkdir lib
  294.     cd src ; $(MAKE) $@
  295.     cd src-glu ; $(MAKE) $@
  296.  
  297. openstep:
  298.     -mkdir lib
  299.     cd src ; $(MAKE) $@
  300.     cd src-glu ; $(MAKE) $@
  301.     cd OpenStep/MesaView; gnumake
  302.  
  303. openstep-dylib:
  304.     -mkdir lib
  305.     cd src ; $(MAKE) -f Makefile.OpenStep $@
  306.     cd src-glu ; $(MAKE) $@
  307.     cd OpenStep/MesaView; gnumake
  308.  
  309. os2-x11:
  310.     if not EXIST .\lib md lib
  311.     touch src/depend
  312.     touch src-glu/depend
  313.     if exist src-glut touch src-glut/depend
  314.     cd src     & make $@
  315.     cd src-glu & make $@
  316.     if exist src-glut  cd src-glut & make $@
  317.     if exist demos     cd demos    & make $@
  318.     if exist xdemos    cd xdemos   & make $@
  319.     if exist samples   cd samples  & make $@
  320.     if exist book      cd book     & make $@
  321.  
  322.  
  323.  
  324. linux-ggi:
  325.     -mkdir lib
  326.     touch src/depend
  327.     touch src-glu/depend
  328.     if [ -d src-glut ] ; then touch src-glut/depend ; fi
  329.     if [ -d ggi ] ; then touch ggi/depend ; fi
  330.     cd src ; $(MAKE) $@
  331.     cd src/GGI/default ; $(MAKE)
  332.     cd src-glu ; $(MAKE) $@
  333. #    if [ -d src-glut ] ; then cd src-glut ; $(MAKE) $@ ; fi
  334.     if [ -d ggi ]      ; then cd ggi      ; $(MAKE) $@ ; fi
  335.     if [ -d ggi ]      ; then cd ggi/demos; $(MAKE)    ; fi
  336.     if [ -d demos ]    ; then cd demos    ; $(MAKE) $@ ; fi
  337.     if [ -d xdemos ]   ; then cd xdemos   ; $(MAKE) $@ ; fi
  338.     if [ -d samples ]  ; then cd samples  ; $(MAKE) $@ ; fi
  339.     if [ -d book ]     ; then cd book     ; $(MAKE) $@ ; fi
  340.  
  341. # if you change GGI_DEST please change it in ggimesa.conf, too.
  342. GGI_DEST=/usr/local/lib/ggi/mesa/default
  343.  
  344. linux-ggi-install:
  345.     install -d $(GGI_DEST)
  346.     install -m 0755 src/GGI/default/*.so $(GGI_DEST)
  347.     install -m 0644 src/GGI/ggimesa.conf /etc/ggi
  348.     if [ -z "`grep ggimesa /etc/ggi/libggi.conf`" ]; then \
  349.     echo ".include /etc/ggi/ggimesa.conf" >> /etc/ggi/libggi.conf ; \
  350.     fi
  351.  
  352.  
  353. # Remove .o files, emacs backup files, etc.
  354. clean:
  355.     -rm -f include/*~
  356.     -rm -f include/GL/*~
  357.     -rm -f src/*.o src/*~ src/*.a src/*/*.o src/*/*~
  358.     -rm -f src-glu/*.o src-glu/*~ src-glu/*.a
  359.     -rm -f src-glut/*.o
  360.     -rm -f demos/*.o
  361.     -rm -f book/*.o book/*~
  362.     -rm -f xdemos/*.o xdemos/*~
  363.     -rm -f samples/*.o samples/*~
  364.  
  365. # Remove everthing that can be remade
  366. realclean: clean
  367.     -rm -f lib/*
  368.     cd demos   && $(MAKE) realclean || true
  369.     cd xdemos  && $(MAKE) realclean || true
  370.     cd book    && $(MAKE) realclean || true
  371.     cd samples && $(MAKE) realclean || true
  372.  
  373.  
  374.  
  375. DIRECTORY = Mesa-3.0
  376. LIB_NAME = MesaLib-3.0
  377. DEMO_NAME = MesaDemos-3.0
  378.  
  379.  
  380. LIB_FILES =    \
  381.     $(DIRECTORY)/README*            \
  382.     $(DIRECTORY)/IAFA-PACKAGE        \
  383.     $(DIRECTORY)/LICENSE            \
  384.     $(DIRECTORY)/VERSIONS            \
  385.     $(DIRECTORY)/RELNOTES            \
  386.     $(DIRECTORY)/FUTURE            \
  387.     $(DIRECTORY)/CONFORM            \
  388.     $(DIRECTORY)/Makefile*            \
  389.     $(DIRECTORY)/Make-config        \
  390.     $(DIRECTORY)/mklib.*            \
  391.     $(DIRECTORY)/mklib-emx.cmd        \
  392.     $(DIRECTORY)/*.BAT            \
  393.     $(DIRECTORY)/descrip.mms        \
  394.     $(DIRECTORY)/mms-config            \
  395.     $(DIRECTORY)/xlib.opt            \
  396.     $(DIRECTORY)/STARTUP.MK            \
  397.     $(DIRECTORY)/mesawin32.mak        \
  398.     $(DIRECTORY)/Names.win            \
  399.     $(DIRECTORY)/win32-openstep.sh        \
  400.     $(DIRECTORY)/include/GL/dosmesa.h    \
  401.     $(DIRECTORY)/include/GL/foomesa.h    \
  402.     $(DIRECTORY)/include/GL/fxmesa.h    \
  403.     $(DIRECTORY)/include/GL/ggimesa.h    \
  404.     $(DIRECTORY)/include/GL/gl.h        \
  405.     $(DIRECTORY)/include/GL/gl_mangle.h    \
  406.     $(DIRECTORY)/include/GL/glu.h        \
  407.     $(DIRECTORY)/include/GL/glu_mangle.h    \
  408.     $(DIRECTORY)/include/GL/glx.h        \
  409.     $(DIRECTORY)/include/GL/glx_mangle.h    \
  410.     $(DIRECTORY)/include/GL/mglmesa.h    \
  411.     $(DIRECTORY)/include/GL/osmesa.h    \
  412.     $(DIRECTORY)/include/GL/osmesa3.h    \
  413.     $(DIRECTORY)/include/GL/svgamesa.h    \
  414.     $(DIRECTORY)/include/GL/wmesa.h        \
  415.     $(DIRECTORY)/include/GL/xmesa.h        \
  416.     $(DIRECTORY)/src/Makefile*        \
  417.     $(DIRECTORY)/src/descrip.mms        \
  418.     $(DIRECTORY)/src/mms_depend        \
  419.     $(DIRECTORY)/src/*.def            \
  420.     $(DIRECTORY)/src/*.rsp            \
  421.     $(DIRECTORY)/src/depend            \
  422.     $(DIRECTORY)/src/*.[chS]        \
  423.     $(DIRECTORY)/src/DOS/*            \
  424.     $(DIRECTORY)/src/FX/*.[ch]        \
  425.     $(DIRECTORY)/src/FX/*.def        \
  426.     $(DIRECTORY)/src/MGL/*            \
  427.     $(DIRECTORY)/src/OSmesa/*.[ch]        \
  428.     $(DIRECTORY)/src/S3/*            \
  429.     $(DIRECTORY)/src/SVGA/*.[ch]        \
  430.     $(DIRECTORY)/src/GGI/*.[ch]        \
  431.     $(DIRECTORY)/src/GGI/ggimesa.conf    \
  432.     $(DIRECTORY)/src/GGI/default/*.c    \
  433.     $(DIRECTORY)/src/GGI/default/Makefile    \
  434.     $(DIRECTORY)/src/Windows/*.[ch]        \
  435.     $(DIRECTORY)/src/Windows/*.def        \
  436.     $(DIRECTORY)/src/X/*.[ch]        \
  437.     $(DIRECTORY)/src-glu/README[12]        \
  438.     $(DIRECTORY)/src-glu/Makefile*        \
  439.     $(DIRECTORY)/src-glu/descrip.mms    \
  440.     $(DIRECTORY)/src-glu/mms_depend        \
  441.     $(DIRECTORY)/src-glu/*.def        \
  442.     $(DIRECTORY)/src-glu/*.rsp        \
  443.     $(DIRECTORY)/src-glu/depend        \
  444.     $(DIRECTORY)/src-glu/*.[ch]        \
  445.     $(DIRECTORY)/widgets-mesa        \
  446.     $(DIRECTORY)/widgets-sgi        \
  447.     $(DIRECTORY)/util/README        \
  448.     $(DIRECTORY)/util/*.c            \
  449.     $(DIRECTORY)/BeOS            \
  450.     $(DIRECTORY)/OpenStep            \
  451.     $(DIRECTORY)/win32
  452.  
  453.  
  454. DEMO_FILES =    \
  455.     $(DIRECTORY)/include/GL/glut.h        \
  456.     $(DIRECTORY)/src-glut/Makefile*        \
  457.     $(DIRECTORY)/src-glut/depend        \
  458.     $(DIRECTORY)/src-glut/*def        \
  459.     $(DIRECTORY)/src-glut/descrip.mms    \
  460.     $(DIRECTORY)/src-glut/mms_depend    \
  461.     $(DIRECTORY)/src-glut/*.[ch]        \
  462.     $(DIRECTORY)/demos/Makefile*        \
  463.     $(DIRECTORY)/demos/descrip.mms        \
  464.     $(DIRECTORY)/demos/*.[ch]        \
  465.     $(DIRECTORY)/demos/*.rgb        \
  466.     $(DIRECTORY)/demos/*.dat        \
  467.     $(DIRECTORY)/xdemos/Makefile*        \
  468.     $(DIRECTORY)/xdemos/descrip.mms        \
  469.     $(DIRECTORY)/xdemos/*.[cf]        \
  470.     $(DIRECTORY)/book/Makefile*        \
  471.     $(DIRECTORY)/book/README        \
  472.     $(DIRECTORY)/book/*.[ch]        \
  473.     $(DIRECTORY)/samples/Makefile*        \
  474.     $(DIRECTORY)/samples/README        \
  475.     $(DIRECTORY)/samples/*.c        \
  476.     $(DIRECTORY)/3Dfx            \
  477.     $(DIRECTORY)/mtdemos            \
  478.     $(DIRECTORY)/ggi
  479.  
  480.  
  481. lib_tar:
  482.     cd .. ; \
  483.     tar -cvf $(LIB_NAME).tar $(LIB_FILES) ; \
  484.     gzip $(LIB_NAME).tar ; \
  485.     mv $(LIB_NAME).tar.gz $(DIRECTORY)
  486.  
  487. demo_tar:
  488.     cd .. ; \
  489.     tar -cvf $(DEMO_NAME).tar $(DEMO_FILES) ; \
  490.     gzip $(DEMO_NAME).tar ; \
  491.     mv $(DEMO_NAME).tar.gz $(DIRECTORY)
  492.  
  493. lib_zip:
  494.     -rm $(LIB_NAME).zip
  495.     cd .. ; \
  496.     zip -r $(LIB_NAME).zip $(LIB_FILES) ; \
  497.     mv $(LIB_NAME).zip $(DIRECTORY)
  498.  
  499. demo_zip:
  500.     -rm $(DEMO_NAME).zip
  501.     cd .. ; \
  502.     zip -r $(DEMO_NAME).zip $(DEMO_FILES) ; \
  503.     mv $(DEMO_NAME).zip $(DIRECTORY)
  504.  
  505.  
  506.  
  507. SRC_FILES =    \
  508.     src/Makefile*        \
  509.     src/depend        \
  510.     src/*.[ch]        \
  511.     include/GL/*.h
  512.  
  513. srctar:
  514.     tar -cvf src.tar $(SRC_FILES) ; \
  515.     gzip src.tar
  516.  
  517. srctar.zip:
  518.     -rm src.zip
  519.     zip -r src.zip $(SRC_FILES) ; \
  520.